home *** CD-ROM | disk | FTP | other *** search
- Path: telepost.no!usenet
- From: Carsten Arnholm <ca@sesam.dnv.no>
- Newsgroups: comp.lang.c++
- Subject: Re: DLL's with classes in them
- Date: 23 Feb 1996 18:03:31 GMT
- Organization: DNV
- Message-ID: <4gkvhk$b1v@nms.telepost.no>
- References: <312C9B55.71F3@dial.pipex.com>
- NNTP-Posting-Host: hugin.sesam.dnv.no
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1 (Windows; I; 32bit)
-
- J P Crocker <whl.adv.eng@dial.pipex.com> wrote:
- >Here's one...
- >
- >I'm using Borland Turbo C++ 3.1, and am trying to create a DLL with a class
- >definition which I can import into my App. I've decared the class in the DLL
- >using the EXPORT macro:
- >
- > class EXPORT class_name
- > {
- > ...
- > }
- >
- >and I've included the .lib file for the DLL in my project file. I now need to
- >put some reference to class_name in my main application code so I can derive
- >descendant classes from class_name. How do I do this? Also, in the previous
- >version I defined class_name in a header file, and included a prototype of
- >the class at the top of the code ..
- >
- > class class_name;
- >
- >so that I could create pointers to class_name before it was defined. What is
- >the appropriate syntax for doing this when class_name is contained in a DLL?
- >
- >Thanks
- >
- >Jason Crocker
- > email: whl.adv.eng@dial.pipex.com
-
-
- Unfortunately, I do not believe this is possible. DLL's support only C-style
- API functions. You can have objects inside & outside the DLL, but you cannot
- import or export such objects.
-
- If someone can prove me wrong, I would be most grateful.
-
- Is OLE the answer ?
-
- Please reply to email: ca@sesam.dnv.no
-
-